|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
PartnerLinkImpl.java | - | 83.3% | 83.3% | 83.3% |
|
1 |
/*
|
|
2 |
* $Id: PartnerLinkImpl.java,v 1.1 2004/12/15 14:18:12 patforna Exp $
|
|
3 |
*
|
|
4 |
* Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
|
|
5 |
* Berne University of Applied Sciences
|
|
6 |
* School of Engineering and Information Technology
|
|
7 |
* All rights reserved.
|
|
8 |
*/
|
|
9 |
package bexee.model.elements.impl;
|
|
10 |
|
|
11 |
import javax.xml.namespace.QName;
|
|
12 |
|
|
13 |
import bexee.core.ProcessController;
|
|
14 |
import bexee.core.ProcessInstance;
|
|
15 |
import bexee.model.BPELElementVisitor;
|
|
16 |
import bexee.model.elements.PartnerLink;
|
|
17 |
|
|
18 |
/**
|
|
19 |
* Default implementation of the <code>PartnerLink</code> BPEL element.
|
|
20 |
*
|
|
21 |
* @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:12 $
|
|
22 |
* @author Patric Fornasier
|
|
23 |
* @author Pawel Kowalski
|
|
24 |
*/
|
|
25 |
public class PartnerLinkImpl implements PartnerLink { |
|
26 |
|
|
27 |
private String name = null; |
|
28 |
|
|
29 |
private QName partnerLinkType = null; |
|
30 |
|
|
31 |
private String myRole = null; |
|
32 |
|
|
33 |
private String partnerRole = null; |
|
34 |
|
|
35 |
//**************************************************/
|
|
36 |
// c'tors
|
|
37 |
//**************************************************/
|
|
38 |
|
|
39 | 106 |
public PartnerLinkImpl() {
|
40 | 106 |
super();
|
41 |
} |
|
42 |
|
|
43 |
/**
|
|
44 |
* @param value
|
|
45 |
*/
|
|
46 | 0 |
public PartnerLinkImpl(String name) {
|
47 | 0 |
this.name = name;
|
48 |
} |
|
49 |
|
|
50 |
//**************************************************/
|
|
51 |
// bexee.model.PartnerLink
|
|
52 |
//**************************************************/
|
|
53 |
|
|
54 | 104 |
public void setName(String name) { |
55 | 104 |
this.name = name;
|
56 |
} |
|
57 |
|
|
58 | 42 |
public String getName() {
|
59 | 42 |
return name;
|
60 |
} |
|
61 |
|
|
62 | 96 |
public void setPartnerLinkType(QName partnerLinkType) { |
63 | 96 |
this.partnerLinkType = partnerLinkType;
|
64 |
} |
|
65 |
|
|
66 | 14 |
public QName getPartnerLinkType() {
|
67 | 14 |
return partnerLinkType;
|
68 |
} |
|
69 |
|
|
70 | 96 |
public void setMyRole(String myRole) { |
71 | 96 |
this.myRole = myRole;
|
72 |
} |
|
73 |
|
|
74 | 6 |
public String getMyRole() {
|
75 | 6 |
return myRole;
|
76 |
} |
|
77 |
|
|
78 | 96 |
public void setPartnerRole(String partnerRole) { |
79 | 96 |
this.partnerRole = partnerRole;
|
80 |
} |
|
81 |
|
|
82 | 6 |
public String getPartnerRole() {
|
83 | 6 |
return partnerRole;
|
84 |
} |
|
85 |
|
|
86 |
//**************************************************/
|
|
87 |
// bexee.model.BPELElement
|
|
88 |
//**************************************************/
|
|
89 |
|
|
90 | 18 |
public void accept(ProcessController controller, ProcessInstance instance) |
91 |
throws Exception {
|
|
92 | 18 |
controller.process(this, instance);
|
93 |
} |
|
94 |
|
|
95 | 0 |
public void accept(BPELElementVisitor elementVisitor) { |
96 | 0 |
elementVisitor.visit(this);
|
97 |
} |
|
98 |
|
|
99 |
} |
|